package com.ruoyi.equ.domain;

import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 设备信息关联对象 equ_combination
 * 
 * @author luguanqing
 * @date 2020-10-22
 */
public class EquCombination extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 关联id */
    private String id;

    /** 父级id */
    @Excel(name = "父级id")
    private String fid;

    /** 父级设备名称 */
    @Excel(name = "父级设备名称")
    private String fname;

    /** 子id */
    @Excel(name = "子id")
    private String cid;

    /** 子设备名称 */
    @Excel(name = "子设备名称")
    private String cname;

    public void setId(String id) 
    {
        this.id = id;
    }

    public String getId() 
    {
        return id;
    }
    public void setFid(String fid) 
    {
        this.fid = fid;
    }

    public String getFid() 
    {
        return fid;
    }
    public void setFname(String fname) 
    {
        this.fname = fname;
    }

    public String getFname() 
    {
        return fname;
    }
    public void setCid(String cid) 
    {
        this.cid = cid;
    }

    public String getCid() 
    {
        return cid;
    }
    public void setCname(String cname) 
    {
        this.cname = cname;
    }

    public String getCname() 
    {
        return cname;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("fid", getFid())
            .append("fname", getFname())
            .append("cid", getCid())
            .append("cname", getCname())
            .toString();
    }
}
